//
//  DTDeviceLauncher.m
//  PersonalManager
//
//  Created by user on 16/8/16.
//  Copyright © 2016年 Haiyun.Qian. All rights reserved.
//

#import "DTDeviceLauncher.h"

@implementation DTDeviceLauncher

/** 检测应用是否安装 */
- (void)checkInstalledApps:(DTJavascriptCommand *)command{
    self.action = [[DTDeviceLauncherAction alloc] initWithCommand:command];
    command.actionObject = self.action;
    [self.action checkInstalledApps];
}

/** 启动第三方应用 */
- (void)launchApp:(DTJavascriptCommand *)command{
    self.action = [[DTDeviceLauncherAction alloc] initWithCommand:command];
    command.actionObject = self.action;
    [self.action launcherApp];
}

/** 获取当前网络状况 */
- (void)getNetworkType:(DTJavascriptCommand *)command{
    self.action = [[DTDeviceLauncherAction alloc] initWithCommand:command];
    command.actionObject = self.action;
    [self.action getNetworkType];
}

@end
